package com.fin.zw.aiqas.entity;

import com.fin.zw.aiqas.enums.Synchronization;
import lombok.Data;
import org.hibernate.annotations.Table;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import java.math.BigDecimal;

@Entity
@Table(appliesTo = "scenes_info",comment = "使用场景")
@Data
public class ScenesInfo  extends BaseEntity{

    @Column(columnDefinition = "varchar(100) COMMENT '场景名称'")
    private String name;

    @Column(columnDefinition = "varchar(100) COMMENT '场景编号'")
    private String scenesCode;

    @Column(columnDefinition = "varchar(200) COMMENT '使用场景说明'")
    private String remark;

    @Enumerated(EnumType.STRING)
    @Column(columnDefinition = "varchar(20) COMMENT '该场景是否已经同步'")
    private Synchronization isSynchronize = Synchronization.NO;

    @Column(columnDefinition = "decimal(18,4) COMMENT '命中临界值'")
    private BigDecimal criticalValues = new BigDecimal(0);

}
